home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
arexx
/
rxasl
/
examples
/
screen.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1999-05-17
|
904b
|
36 lines
/*
reqScreen() example
*/
if ~show("L","rxasl.library") then
if ~addLib("rxasl.library",0,-30) then
say "can't find rxasl.library"
a.NTSCREENFRONT = 1
a.INFOOPENED = 1
a.DOWIDTH = 1
a.DOHEIGHT = 1
a.DODEPTH = 1
a.DOOVERSCANTYPE = 1
a.DOAUTOSCROLL = 1
a.OVERSCANTYPE = 2
a.AUTOSCROLL = 0
a.INFOLEFTEDGE = 330
a.INFOTOPEDGE = 0
res=reqScreen(a)
if res==0 then do
say "OverscanType: " a.OVERSCANTYPE
say "AutoScroll: " a.AUTOSCROLL
say "DISPLAYID: " a.DISPLAYID
say "DISPLAYWIDTH: " a.DISPLAYWIDTH
say "DISPLAYHEIGHT:" a.DISPLAYHEIGHT
say "DISPLAYDEPTH: " a.DISPLAYDEPTH
say "INFOOPENED: " a.INFOOPENED
say "INFOLEFTEDGE: " a.INFOLEFTEDGE
say "INFOTOPEDGE: " a.INFOTOPEDGE
say "BITMAPWIDTH: " a.BITMAPWIDTH
say "BITMAPHEIGHT: " a.BITMAPHEIGHT
end
else if res ~= -1 then say GetRxAslString(res) "(" || RXASLERROR || ")"